package com.lagou.service;

/**
 * @ClassName: EmailService
 * @Auther: Jerry
 * @Date: 2020/10/22 16:30
 * @Desctiption: EmailService接口
 * @Version: 1.0
 */
public interface EmailService {

    /**
     * 发送验证码到邮箱，true成功，false失败
     * @param email 电子邮件
     * @param code 代码
     * @return boolean
     */
    Boolean sendToEmail(String email, String code);

}
